<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "order_import_record".
 *
 * @property string $id
 * @property integer $date
 * @property string $image
 * @property integer $content_length
 * @property string $cooperate_app_id
 * @property string $app_id
 * @property integer $create_time
 */
class OrderImportRecord extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'order_import_record';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['date', 'content_length', 'create_time'], 'integer'],
            [['id'], 'string', 'max' => 36],
            [['image'], 'string', 'max' => 300],
            [['cooperate_app_id'], 'string', 'max' => 10],
            [['app_id'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'date' => 'Date',
            'image' => 'Image',
            'content_length' => 'Content Length',
            'cooperate_app_id' => 'Cooperate App ID',
            'app_id' => 'App ID',
            'create_time' => 'Create Time',
        ];
    }
}
